package com.ddwl.funds.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.funds.dao.mapper.OrderWxPayRefundsMapper;
import com.ddwl.funds.dao.model.OrderWxPayRefunds;
import org.springframework.stereotype.Repository;

/**
 * 微信退款流水表(OrderWxPayRefunds)数据处理
 *
 * @author zach
 * @since 2020-09-24 11:42:00
 */
@Repository
public class OrderWxPayRefundsDao  extends TkDao<OrderWxPayRefundsMapper, OrderWxPayRefunds> {


    public OrderWxPayRefunds getOutRefundNoByTransactionid(String transactionId){
        OrderWxPayRefunds orderWxPayRefunds = new OrderWxPayRefunds();
        orderWxPayRefunds.setTransactionId(transactionId);
        return selectOne(orderWxPayRefunds);
    }

    public OrderWxPayRefunds getOutRefundNoByRefundId(String refundId){
        OrderWxPayRefunds orderWxPayRefunds = new OrderWxPayRefunds();
        orderWxPayRefunds.setRefundId(refundId);
        return selectOne(orderWxPayRefunds);
    }
}